﻿create PROCEDURE Sync.SP_IssuePlace_SelectChanges
@LastRowVersion rowversion,
@FilterdColumn UNIQUEIDENTIFIER
AS 
BEGIN 
	SELECT 
        t.[IssuePlaceID],
		g.[IssuePlaceName],g.[CenterID],
		t.IsDeleted,
		t.LastUpdatedDate
	FROM [dbo].[IssuePlace] g RIGHT JOIN Sync.IssuePlace_Tracking t  
    ON t.IssuePlaceID = g.IssuePlaceID 
	WHERE @LastRowVersion IS NULL OR t.Version > @LastRowVersion
    END





